package com.dms.system.service.impl;

import java.util.List;

import com.dms.system.domain.SysOmission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dms.system.mapper.SysOmissionMapper;
import com.dms.system.service.ISysOmissionService;
import com.dms.common.core.text.Convert;

/**
 * 昨日漏检Service业务层处理
 * 
 * @author xlong_zhu
 * @date 2021-04-06
 */
@Service
public class SysOmissionServiceImpl implements ISysOmissionService
{
    @Autowired
    private SysOmissionMapper sysOmissionMapper;

    /**
     * 查询昨日漏检
     * 
     * @param omissionId 昨日漏检ID
     * @return 昨日漏检
     */
//    @Override
//    public SysOmission selectSysOmissionById(Long omissionId)
//    {
//        return sysOmissionMapper.selectSysOmissionById(omissionId);
//    }

    /**
     * 查询昨日漏检列表
     * 
     * @param sysOmission 昨日漏检
     * @return 昨日漏检
     */
    @Override
    public List<SysOmission> selectSysOmissionList(SysOmission sysOmission)
    {
        return sysOmissionMapper.selectSysOmissionList(sysOmission);
    }

    /**
     * 新增昨日漏检
     * 
     * @param sysOmission 昨日漏检
     * @return 结果
     */
//    @Override
//    public int insertSysOmission(SysOmission sysOmission)
//    {
//        return sysOmissionMapper.insertSysOmission(sysOmission);
//    }

    /**
     * 修改昨日漏检
     * 
     * @param sysOmission 昨日漏检
     * @return 结果
     */
//    @Override
//    public int updateSysOmission(SysOmission sysOmission)
//    {
//        return sysOmissionMapper.updateSysOmission(sysOmission);
//    }

    /**
     * 删除昨日漏检对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysOmissionByIds(String ids)
    {
        return sysOmissionMapper.deleteSysOmissionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除昨日漏检信息
     * 
     * @param omissionId 昨日漏检ID
     * @return 结果
     */
    @Override
    public int deleteSysOmissionById(Long omissionId)
    {
        return sysOmissionMapper.deleteSysOmissionById(omissionId);
    }
}
